It is possible to provide a CSS file to be used regardless of the theme set by the user.
|
Start by creating a new note and changing the note type to CSS |
|
In the ribbon, press the “Owned Attributes” section and type #appCss. |
|
Type the desired CSS.
Generally it's a good idea to append !important for
the styles that are being changed, in order to prevent other |
Adding a new app CSS note or modifying an existing one does not immediately apply changes. To see the changes, press Ctrl+Shift+R to refresh the page first.
When using Workspaces, it can be helpful to create a visual distinction between notes in different workspaces.
To do so:
#workspace, add an inheritable
attribute #cssClass(inheritable) with a value
that uniquely identifies the workspace (say my-workspace).#appCss..fancytree-node.my-workspace.fancytree-custom-icon {
color: #ff0000;
}
To change the color of the note title and the icon (above the content):
.note-split.my-workspace .note-icon-widget button.note-icon,
.note-split.my-workspace .note-title-widget input.note-title {
color: #ff0000;
}
background-image and
widthand height to the desired values..note-split.my-workspace .scrolling-container:after {
position: fixed;
content: "";
background-image: url("/api/attachments/Rvm3zJNITQI1/image/logo.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 237px;
height: 44px;
bottom: 1em;
right: 1em;
opacity: 0.5;
z-index: 0;
}
Some parts of the application can't be styled directly via custom CSS because they are rendered in an isolated mode (shadow DOM), more specifically: